package com.sharemarking.wa.platform.utils;

import java.text.ParseException;
import java.util.Date;

public class DateUtils {
    /*
     * 将时间转换为时间戳
     */
    public static String dateToStamp(Date s) throws ParseException{
        String res;
        //SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        long ts = s.getTime();
        res = String.valueOf(ts / 1000);
        return res;
    }

}
